﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using HNQXYJ.DAL;
using HNQXYJ.Model;

namespace HNQXYJ.BLL
{
    public  class SysConfigBLL
    {

        /// <summary>
        /// 获取系统配置表数据（ip 和port）
        /// </summary>
        /// <returns>sc</returns>
        public SysConfig ReturnSysConfig()
        {
            SysConfig sc = new SysConfinDAL().ReturnSysCofing();
            return sc;
        }

        /// <summary>
        /// 更新系统配置（ip和port）
        /// </summary>
        /// <param name="sc"></param>
        /// <returns></returns>
        public bool UpdateSysConfig(SysConfig sc)
        {
            bool flage = new SysConfinDAL().UpdateSysConfig(sc);
            return flage;
        }
      


      
        
    }
}